package com.wsmmr.demoopenfeign.biz.demo.controller;

import com.wsmmr.demoopenfeign.biz.rpc.RpcEurekaClientDemo;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class DemoController {

    @Resource
    private RpcEurekaClientDemo rpcEurekaClientDemo;

    @GetMapping("/index")
    public String index() {

        log.info("负载9101响应请求");
        return rpcEurekaClientDemo.demoRpc();
    }
}
